package com.workcell.workdata.im.model.misc;

public class OssFile {
    private String directory;
    private String filename;

    public String getDirectory() {
        return directory;
    }

    public void setDirectory(String directory) {
        this.directory = directory;
    }

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public String getKey() {
        return directory + "/" + filename;
    }

    public static OssFile of(String dir, String fileName){
        OssFile file = new OssFile();
        file.directory = dir;
        file.filename = fileName;
        return file;
    }
}
